// 各种采集入口
const { startGet_163_Text } = require('./163');
const { startGet_bohaishibei_Text } = require('./bohaishibei.com');

function startGetText() {
  startGet_163_Text();
  // startGet_bohaishibei_Text();
}

let second = 120000;
if (process.env.NODE_ENV === 'production') {
  // console.log('production');
  second = 1000 * 60 * 60 * 8;
}
const startCollect = function () {
  startGetText();
  setInterval(() => {
    startGetText();
  }, second);
};

module.exports = startCollect;
